import {createApp} from "vue";
import App from "@/App.vue";
import AppRouter from "@/router";
import {createPinia} from "pinia";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "@/assets/icon/index.js";
import "@/assets/style/common/common.css"

/**
 * 创建Vue应用
 */
const app = createApp(App)//APP组件
    .use(AppRouter)//路由
    .use(createPinia());//状态管理

//引入element-plus 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

app.mount("#app");//挂载app